let routes = [
    {
        path: '/',
        redirect: 'blog'
    },
    {
        path: '/admin',
        component: require('../Admin/main.vue'),
        children: [
            {
                path: '/',
                redirect: 'home'
            },
            {
                path: 'home',
                component: require('../Admin/home.vue')
            },
            {
                path: 'user',
                component: require('../Admin/user.vue')
            },
            {
                path: 'article',
                component: require('../Admin/article.vue')
            },
            {
                path: 'comment',
                component: require('../Admin/comment.vue')
            }
        ]
    },
    {
        path: '/blog',
        component: require('../Blog/main.vue'),
        children: [
            {
                path: '/',
                redirect: 'home'
            },
            {
                path: 'home',
                component: require('../Blog/home.vue')
            },
            {
                path: 'articlelist',
                component: require('../Blog/articlelist.vue')
            },
            {
                path:'article',
                component:require('../Blog/article.vue')
            },
            {
                path:'comment',
                component:require('../Blog/comment.vue')
            }
        ]

    }
];
export default routes;